package com.schoolcloud.system.mapper;

import com.schoolcloud.system.entity.SysRole;
import com.schoolcloud.system.query.SysRoleQuery;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author hongmizfb
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2024-10-19 23:05:49
* @Entity com.schoolcolud.system.entity.SysRole
*/
@Mapper
public interface SysRoleMapper{


    List<String> getRoleCodeListByUser(String userId);

    SysRole getRoleById(String roleId);
   long getRoleCount(SysRoleQuery query);
    List<SysRole> getRolePage(SysRoleQuery query);

    void addSysRole(SysRole sysRole);

    void modifySysRole(SysRole role);
}
